package com.hutao.manage.model;

import com.hutao.manage.util.NumberUtil;

public class Performance {
	private Integer cyrs;//出院人数
	private Integer opsrs;//手术人数
	private Integer intervene;//介入
	private Integer mini;//微创手术
	private Integer sjrs;//四级手术
	private Integer complication;//手术并发症
	private Integer complicationD;//手术并发症分母
	private Integer infectionI;//I类切口感染
	private Integer infectionID;//I类切口感染分母
	private Integer elective;//择期手术
	private Double opsrsLv;
	private Double sjrsLv;
	private Double complicationLv;
	private Double infectionILv;
	private Double miniLv;
	private Integer interveneRcs;//介入手术人次数
	private Integer miniRcs;//微创手术人次数
	private String depa;
	public Performance(){
		
	}
	
	public void initDate(){
		if(cyrs!=null&&cyrs>0&&opsrs!=null){
			opsrsLv= (NumberUtil.getBaiFenNumber(opsrs * 1.0 / cyrs));
		}
		if(opsrs!=null&&opsrs>0){
			if(mini!=null){
				miniLv= (NumberUtil.getBaiFenNumber(mini * 1.0 / opsrs));
			}
			if(sjrs!=null){
				sjrsLv= (NumberUtil.getBaiFenNumber(sjrs * 1.0 / opsrs));
			}

		}
		if(complicationD!=null&&complicationD>0&&complication!=null){
			complicationLv= (NumberUtil.getBaiFenNumber(complication * 1.0 / complicationD));
		}
		if(infectionID!=null&&infectionID>0&&infectionI!=null){
			infectionILv= (NumberUtil.getBaiFenNumber(infectionI * 1.0 / infectionID));
		}
	}
	
	public Performance(Integer opsrs, Integer intervene,
			Integer mini, Integer sjrs, Integer complication,
			Integer complicationD, Integer infectionI, Integer infectionID,
			Integer elective) {
		this.opsrs = opsrs;
		this.intervene = intervene;
		this.mini = mini;
		this.sjrs = sjrs;
		this.complication = complication;
		this.complicationD = complicationD;
		this.infectionI = infectionI;
		this.infectionID = infectionID;
		this.elective = elective;
	}
	
	public Integer getOpsrs() {
		return opsrs;
	}
	public void setOpsrs(Integer opsrs) {
		this.opsrs = opsrs;
	}
	public Integer getIntervene() {
		return intervene;
	}
	public void setIntervene(Integer intervene) {
		this.intervene = intervene;
	}
	public Integer getMini() {
		return mini;
	}
	public void setMini(Integer mini) {
		this.mini = mini;
	}
	public Integer getSjrs() {
		return sjrs;
	}
	public void setSjrs(Integer sjrs) {
		this.sjrs = sjrs;
	}
	public Integer getComplication() {
		return complication;
	}
	public void setComplication(Integer complication) {
		this.complication = complication;
	}
	public Integer getComplicationD() {
		return complicationD;
	}
	public void setComplicationD(Integer complicationD) {
		this.complicationD = complicationD;
	}
	public Integer getInfectionI() {
		return infectionI;
	}
	public void setInfectionI(Integer infectionI) {
		this.infectionI = infectionI;
	}
	public Integer getInfectionID() {
		return infectionID;
	}
	public void setInfectionID(Integer infectionID) {
		this.infectionID = infectionID;
	}
	public Integer getElective() {
		return elective;
	}
	public void setElective(Integer elective) {
		this.elective = elective;
	}

	public Double getOpsrsLv() {
		return opsrsLv;
	}

	public void setOpsrsLv(Double opsrsLv) {
		this.opsrsLv = opsrsLv;
	}

	public Double getSjrsLv() {
		return sjrsLv;
	}

	public void setSjrsLv(Double sjrsLv) {
		this.sjrsLv = sjrsLv;
	}

	public Double getComplicationLv() {
		return complicationLv;
	}

	public void setComplicationLv(Double complicationLv) {
		this.complicationLv = complicationLv;
	}

	public Double getInfectionILv() {
		return infectionILv;
	}

	public void setInfectionILv(Double infectionILv) {
		this.infectionILv = infectionILv;
	}

	public Integer getCyrs() {
		return cyrs;
	}

	public void setCyrs(Integer cyrs) {
		this.cyrs = cyrs;
	}

	public Double getMiniLv() {
		return miniLv;
	}

	public void setMiniLv(Double miniLv) {
		this.miniLv = miniLv;
	}

	public Integer getInterveneRcs() {
		return interveneRcs;
	}

	public void setInterveneRcs(Integer interveneRcs) {
		this.interveneRcs = interveneRcs;
	}

	public Integer getMiniRcs() {
		return miniRcs;
	}

	public void setMiniRcs(Integer miniRcs) {
		this.miniRcs = miniRcs;
	}

	public String getDepa() {
		return depa;
	}

	public void setDepa(String depa) {
		this.depa = depa;
	}

	@Override
	public String toString() {
		return "Performance [cyrs=" + cyrs + ", opsrs=" + opsrs + ", intervene=" + intervene + ", mini=" + mini
				+ ", sjrs=" + sjrs + ", complication=" + complication + ", complicationD=" + complicationD
				+ ", infectionI=" + infectionI + ", infectionID=" + infectionID + ", elective=" + elective
				+ ", opsrsLv=" + opsrsLv + ", sjrsLv=" + sjrsLv + ", complicationLv=" + complicationLv
				+ ", infectionILv=" + infectionILv + ", miniLv=" + miniLv + ", interveneRcs=" + interveneRcs
				+ ", miniRcs=" + miniRcs + ", depa=" + depa + "]";
	}
	
	
	
	
}